home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1993 November / JCSM Shareware Collection - 1993-11.iso / cl760 / curvpltj.lzh / ENVIRO.DOC < prev    next >
Text File  |  1992-01-09  |  3KB  |  56 lines

  1. CRVPLOT "HELP" and "environment variables":
  2. ------------------------------------------
  3. If you will be running CRVPLOT from the directory CRVPLOT.RH is on, you do
  4. not need to set an environment variable.  However, it is often convenient
  5. to run CRVPLOT from a directory where you keep files related to a project:
  6.                                  C:
  7.          ┌─────────┬───────┬─────┴─────┬──────────┬───────┐
  8.       \PROJA    \PROJB   \DOS        \CRV       \WP     \CALC
  9.          │                             │
  10.          ├FILE1                        ├CRVPLOT.EXE
  11.          │                             │
  12.          ├FILE2                        ├CRVPLOT.RH <─────────┐
  13.          │                             │(help file)          │
  14.          │                             │                     │
  15.    ┌─────┴────────────────┐   ┌────────┴────────────────┐    │
  16.     If you run CRVPLOT         If you run CRVPLOT            │
  17.     from this directory        from here, no environment     │
  18.     CRVPLOT needs to know      variable is required.         │
  19.     that the HELP file is                                    │
  20.     here ────────────────────────────────────────────────────┘
  21.     CRVPLOT uses "environment variables" to accomplish this.
  22.  
  23. Environment variables are simple but for some reason difficult to explain.
  24.  
  25. Briefly, DOS reserves a piece of memory for you to use to store information.
  26. This area of memory is called the "environment".  To put something there,
  27. use the DOS SET command.  For example,
  28.                         SET CRVHOME=C:\CRV
  29. The format is: the SET command, then a variable name (CRVHOME) followed
  30. by an "=" followed by a string of characters (C:\CRV).  There are virtually
  31. no rules on what the variable name or its "value" can be.  It's just a nice
  32. place a user can park some information that's available to any program running
  33. on the system.  The only guaranteed thing in the environment is a variable
  34. named COMSPEC which DOS sets to point to COMMAND.COM.  To see what's in the
  35. environment, enter the SET command with no arguments.
  36.  
  37. CRVPLOT will look in the environment space and see if you have set a variable
  38. named CRVHOME.  If you have, it will read the "value" of CRVHOME which is
  39. supposed to contain the path to the HELP file named CRVPLOT.RH (on the
  40. distribution disk, this is compressed and stored in CRVHELP.ZIP).
  41.  
  42. IF ERROR:
  43. If the default space DOS reserved for the environment is too small,
  44. it can be increased by adding the following to your CONFIG.SYS file:
  45.  
  46.    DOS earlier than 3.0:   See PC Magazine's book "DOS Power Tools",
  47.                            1988 edition, pg. 89.
  48.  
  49.    DOS 3.0,3.1         SHELL=C:\COMMAND.COM /P /E:18
  50.    where the environment size will be 18 paragraphs, 16 bytes ea
  51.  
  52.    DOS 3.2 & above     SHELL=C:\COMMAND.COM /P /E:512
  53.    where the environment size will be 512 bytes
  54.  
  55. For each of the above, your COMMAND.COM is assumed to be on "C:\".
  56.